-- GENERATED SPELL FOR [Ravasaur Hunter] --


function spell0_6507(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6507', 15000, 1)
end

function spell1_6507(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6507', 8000, 1)
end

function Sorts_6507(pUnit, Event)
local choix_sorts_6507 = math.random(0, 1)
if choix_sorts_6507 == 0 then
pUnit:RegisterEvent('spell0_6507', 1, 1)
end
if choix_sorts_6507 == 1 then
pUnit:RegisterEvent('spell1_6507', 1, 1)
end
end

function mob6507_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6507', math.random(1500, 3000), 1)
end

function mob6507_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6507_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6507_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6507, 1, 'mob6507_Action')
RegisterUnitEvent(6507, 2, 'mob6507_Leave')
RegisterUnitEvent(6507, 3, 'mob6507_Kill')
RegisterUnitEvent(6507, 4, 'mob6507_Die')
